package com.jdym.back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 后台管理员表
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Manage对象", description="后台管理员表")
public class Manage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "后台ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "管理员姓名")
    @TableField(value = "name")
    private String mname;

    @ApiModelProperty(value = "密码")
    private String pwd;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "创建日期")
    private LocalDate createDate;

    @ApiModelProperty(value = "修改日期")
    private LocalDate updateDate;
//0-管理员  1-业务员
    @ApiModelProperty(value = "业务员id")
    private Integer businessid;

    @ApiModelProperty(value = "角色id")
    @TableField(value = "role_id")
    private Integer roleId;
    @ApiModelProperty(value = "是否删除")
    @TableField(value = "isDelete")
    @TableLogic(value="0",delval="1")
    private Integer isDelete;
}
